package com.czk.durant.springframework.beans.factory.support;

import com.czk.durant.springframework.core.io.Resource;
import com.czk.durant.springframework.core.io.ResourceLoader;
import com.czk.durant.springframework.exception.BeanException;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/6/21 9:47
 */
public interface BeanDefinitionReader {
    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeanException;

    void loadBeanDefinitions(Resource... resources) throws BeanException;

    void loadBeanDefinitions(String location) throws BeanException;
}
